<com:TPanel CssClass="portlet">
	<com:TPanel CssClass="sendmailportlet">
		<com:TPanel id="createmail" GroupingText="<%[Send mail]%>" DefaultButton="SendMailButton" >
			<com:THiddenField Id="RecipientId" Value="0" />
			<com:THiddenField Id="hfMailSend" Value="0" />

			<table width="100%">
				<tr>
					<td colspan="2"><com:TValidationSummary Display="Dynamic" ValidationGroup="sendmail" /></td>
				</tr>
				<tr>
					<td style="text-align: right;"><%[Recipient]%></td>
					<td>
					<com:TLabel Id="SingleRecipient" Visible="false" />
					<com:TDropDownList Id="MultiRecipient" Visible="false" PromptText="<%[Select]%>" PromptValue="-1"/>
					<com:TRequiredFieldValidator Id="valRec" InitialValue="-1" ControlToValidate="MultiRecipient" ValidationGroup="sendmail" Display="Dynamic" Text="*" ErrorMessage="<%[You need to select a recipient.]%>" ControlCssClass="input-error1" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right;"><%[Your name]%></td>
					<td>
						<com:TTextBox ID="YourName" Columns="45" Text="<%= $this->User->Id ? $this->User->FullName : '' %>"/>
						<com:TRequiredFieldValidator ControlToValidate="YourName" ValidationGroup="sendmail" Text="*" Display="Dynamic" ErrorMessage="<%[You need to enter your name.]%>" ControlCssClass="input-error1"/>
					</td>
				</tr>
				<tr>
					<td style="text-align: right;"><%[Your email]%></td>
					<td>
						<com:TTextBox ID="YourEmail" Columns="45" Text="<%= $this->User->Id ? $this->User->Email : ''%>"/>
						<com:TRequiredFieldValidator ControlToValidate="YourEmail" ValidationGroup="sendmail" Text="*" Display="Dynamic" ErrorMessage="<%[Yoy need to enter your e-mail adresse.]%>" ControlCssClass="input-error1"/>
						<com:TEmailAddressValidator ControlToValidate="YourEmail" ValidationGroup="sendmail" Display="Dynamic" Text="*" ErrorMessage="<%[The e-mail address is not valid.]%>" ControlCssClass="input-error2" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right;"><%[Subject]%></td>
					<td>
						<com:TTextBox ID="Subject" Columns="45" Text=""/>
						<com:TRequiredFieldValidator ControlToValidate="Subject" ValidationGroup="sendmail" Text="*" Display="Dynamic" ErrorMessage="<%[You need to enter a subject.]%>" ControlCssClass="input-error1"/>
					</td>
				</tr>
				<tr>
					<td style="text-align: right;" valign="top"><%[Your message]%></td>
					<td>
						<com:TTextBox ID="YourMessage" TextMode="MultiLine" Columns="60" Rows="10"/>
						<com:TRequiredFieldValidator ControlToValidate="YourMessage" ValidationGroup="sendmail" Text="*" Display="Dynamic" ErrorMessage="<%[You have to enter a messages.]%>" ControlCssClass="input-error1"/>
					</td>
				</tr>
				<tr>
					<td colspan="2"><hr /></td>
				</tr>
				<tr>
					<td><com:TPortalLinkButton ID="SendMailButton" Text="<%[Send]%>" ValidationGroup="sendmail" CssClass="link-button" OnClick="sendmail" /></td>
					<td style="text-align:right;"><com:TPortalHyperLink CssClass="link-button" Id="CancelLink" Text="<%[Cancel]%>" NavigateUrl=<%=$this->Service->constructUrl($this->Service->DefaultPage)%>/></td>
				</tr>
			</table>

		</com:TPanel>

		<com:TPanel id="mailsend" Visible="false">
		<%[Your mail was send.]%>
		</com:TPanel>
	</com:TPanel>
</com:TPanel>